# -*- coding: utf-8 -*-
"""
反转一个列表
"""
from typing import Sequence, Any


def reverse(s: Sequence[Any], start, stop):
    if start < stop - 1:
        s[start], s[stop - 1] = s[stop - 1], s[start]
        reverse(s, start + 1, stop - 1)


if __name__ == "__main__":
    pass
